package com.xqls.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Controller
@RequestMapping(value = "/hello",method = RequestMethod.GET,params = {"name"})
public class LaoController {
    @RequestMapping("/hello.do")
    public ModelAndView test1(HttpServletRequest request, HttpServletResponse response) throws Exception{
        ModelAndView mv = new ModelAndView();
        mv.addObject("hello",request.getParameter("name"));
        mv.setViewName("view/jsp/first");
        System.out.println("aaa");
        return mv;
    }


}
